<?php  //同属公司
if (count($sclCelebritys) > 0) {
    echo "<div class='similar'>
            <h2><div class='com_tit'>同属公司<span>SIMILAR TO</span></div></h2>
            <div class='similar_box'>";
    foreach ($sclCelebritys as $celebrity)
    {
        //
        if ($celebrity->getSnapshotSmall() != null && $celebrity->getSnapshotSmall() != "")
            echo "<div class='similar_con'>" . link_to("<img src='" . $celebrity->getSnapshotSmall() . "'  />"
                , "celebrity/detail?celebrityId=" . $celebrity->getCelebrity_id()
                , "target='_blank'") . "<p>" . $celebrity->getName() . "</p></div>";
        else
            echo "<div class='similar_con'>" . link_to("<img src='" . $celebrity->getSnapshotBig() . "'  />"
                , "celebrity/detail?celebrityId=" . $celebrity->getCelebrity_id()
                , "target='_blank'") . "<p>" . $celebrity->getName() . "</p></div>";
    }
    echo "</div></div>";
}
?>